/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace DGZImp.ApsProject.DomainModels
{
    [Entity(TableCnName = "销售订单明细",TableName = "Aps_SalesOrderDetail",DBServer = "ServiceDbContext")]
    public partial class Aps_SalesOrderDetail:ServiceEntity
    {
        /// <summary>
       ///销售单ID
       /// </summary>
       [Display(Name ="销售单ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public long SalesOrderId { get; set; }

       /// <summary>
       ///销售单明细Id
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="销售单明细Id")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long SalesOrderDetailId { get; set; }

       /// <summary>
       ///货品Id
       /// </summary>
       [Display(Name ="货品Id")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? MaterialId { get; set; }

       /// <summary>
       ///项次
       /// </summary>
       [Display(Name ="项次")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ItemCode { get; set; }

       /// <summary>
       ///数量
       /// </summary>
       [Display(Name ="数量")]
       [DisplayFormat(DataFormatString="10,6")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? Qty { get; set; }

       /// <summary>
       ///单价
       /// </summary>
       [Display(Name ="单价")]
       [DisplayFormat(DataFormatString="10,6")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? UnitPrice { get; set; }

       /// <summary>
       ///金额小计
       /// </summary>
       [Display(Name ="金额小计")]
       [DisplayFormat(DataFormatString="10,6")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? TotalFee { get; set; }

       /// <summary>
       ///已交付量
       /// </summary>
       [Display(Name ="已交付量")]
       [DisplayFormat(DataFormatString="10,6")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? DeliveredQty { get; set; }

       /// <summary>
       ///余量
       /// </summary>
       [Display(Name ="余量")]
       [DisplayFormat(DataFormatString="10,6")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? RemandQty { get; set; }

       /// <summary>
       ///答复交货日期
       /// </summary>
       [Display(Name ="答复交货日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ReplyDeliveredDate { get; set; }

       /// <summary>
       ///副单位码
       /// </summary>
       [Display(Name ="副单位码")]
       [MaxLength(10)]
       [Column(TypeName="nvarchar(10)")]
       [Editable(true)]
       public string UnitCode2 { get; set; }

       /// <summary>
       ///副单位
       /// </summary>
       [Display(Name ="副单位")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string UnitName2 { get; set; }

       /// <summary>
       ///重量
       /// </summary>
       [Display(Name ="重量")]
       [DisplayFormat(DataFormatString="10,6")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? WeightQty { get; set; }

       /// <summary>
       ///启用
       /// </summary>
       [Display(Name ="启用")]
       [Column(TypeName="sbyte")]
       [Editable(true)]
       public sbyte? Enabled { get; set; }

       /// <summary>
       ///是否有效
       /// </summary>
       [Display(Name ="是否有效")]
       [Column(TypeName="int")]
       public int? IsValid { get; set; }

       /// <summary>
       ///创建用户
       /// </summary>
       [Display(Name ="创建用户")]
       [Column(TypeName="bigint")]
       public long? CreateId { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///修改用户
       /// </summary>
       [Display(Name ="修改用户")]
       [Column(TypeName="bigint")]
       public long? ModifyId { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyTime { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(512)]
       [Column(TypeName="nvarchar(512)")]
       [Editable(true)]
       public string Remarks { get; set; }

       
    }
}